package com.sakura.util.rabbitmq2;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created by apple on 2018/7/18.
 */
@Component
@RabbitListener(queues = "topic.one")
public class TopicOneReceiver {
    @RabbitHandler
    public void process(String hello) {
        System.out.println("Topic Exchange topic one Receiver  : " + hello);
    }
}
